import { FormRules } from "element-plus"

export const advertisingFormRules: FormRules = {
  advertisingTitle: [
    { required: true, message: "请输入广告标题", trigger: "blur" },
    { max: 80, message: "广告标题最多80个字符", trigger: "blur" }
  ],
  advertisingContent: [
    { required: true, message: "请输入广告内容", trigger: "blur" },
    { max: 300, message: "广告内容最多300个字符", trigger: "blur" }
  ],
  redirectUrl: [{ required: true, message: "请上传广告图片", trigger: "change" }]
}
